﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;

namespace EventMonitor
{
	/// <summary>
	/// Interaction logic for App.xaml
	/// </summary>
	public partial class App : Application
	{
		private NotificationIconWrapper _notification = null;
		private int _resultFilterRecordCount;



		#region " Properties "

		public int ResultFilterRecordCount
		{
			get { return _resultFilterRecordCount; }
			set { _resultFilterRecordCount = value; }
		}

		#endregion



		#region " Methods "

		protected override void OnStartup(StartupEventArgs e)
		{
			base.OnStartup(e);

			this.ShutdownMode = ShutdownMode.OnExplicitShutdown;
			_notification = new NotificationIconWrapper();
		}

		protected override void OnExit(ExitEventArgs e)
		{
			base.OnExit(e);
			_notification.Dispose();
		}

		#endregion
	}
}
